package com.agino.jdk8.learn.threadLock.synchronizedlearn.entity;

import com.agino.jdk8.learn.enums.SexEnums;

/**
 * @author agino
 * @version 1.0
 * @date 2023/2/27 11:06
 */
public class User {

    private String name;

    private int age;

    private SexEnums sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public SexEnums getSex() {
        return sex;
    }

    public void setSex(SexEnums sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }
}
